{include file="header.html"}
<link rel="stylesheet" href="/style/css/member.css">
<script type="text/javascript" src="/style/dp/WdatePicker.js"></script>
{include file="ur_here.html"}
<div id="container">
    <div class="fn-clear mt20 pb20">
        {include file="member/menu.html"}
        <div class="fn-right hy-r">
            <div class="fn-clear hy-tjxh">
                <div class="title"><h2>佣金明细</h2></div>
                <div class="db-nrbox fn-clear">
					{if $site_config.apply_jufu!=1}
                    <div class="total ">
                        <dt></dt>
                        <dd>累计收入：<b class="color04">{$commission_total}</b>元</dd>     <dd>累计(充值{if $site_config.withdraw_status eq 1}/提现{/if})：<b class="color04">{$member.deduct_commission}</b>元</dd>       <dd>佣金余额：<b class="color04">{$member.commission}</b>元</dd><dd>
                        {if $site_config.withdraw_status eq 1}
                        <a href="{url('/member/withdraw_commission')}" title="申请提现" class="hy-btn2">申请提现</a>
                        {/if}
                        <a href="{url('/member/recharge_commission')}" title="充值到{$L.unit_yun}账户" class="hy-btn2">充值到{$L.unit_yun}账户</a>
                        </dd>
                        <dd class="gray02 color03">佣金余额可实时充值到您的{$L.unit_yun}帐户，满{$site_config.withdraw_commission}元时才可申请提现。</dd>
                    </div>
					{/if}
                    <div class="fn-clear mt20">
                        <div class="fn-left db-sxl">
                            <a href="{url('/member/commission')}" {if $smarty.get.time eq ''}class="dq"{/if}>全部</a>
                            <a href="{url('/member/commission')}?time=1" {if $smarty.get.time eq 1}class="dq"{/if}>今天</a>
                            <a href="{url('/member/commission')}?time=2" {if $smarty.get.time eq 2}class="dq"{/if}>本周</a>
                            <a href="{url('/member/commission')}?time=3" {if $smarty.get.time eq 3}class="dq"{/if}>本月</a>
                            <a href="{url('/member/commission')}?time=4" {if $smarty.get.time eq 4}class="dq"{/if}>最近三个月</a>
                        </div>
                        <form action="{url('/member/commission')}">
                            <div class="fn-right db-sxr">
                                <label id="Label1">选择时间段：</label>
                                <input name="from_data" type="text" onclick="WdatePicker()" class="dq-inpt" />
                                <label id="Label1">-</label>
                                <input name="to_data" type="text"  onclick="WdatePicker()" class="dq-inpt"  />
                                <input type="submit" value="搜索" />
                            </div>
                        </form>
                    </div>
                    <div class="hy-table" style="margin: 10px auto; width: 905px;">
                        <table>
                            <tbody>
                            <tr>
                                <th>被邀请人</th>
                                <th>时间</th>
                                <th>描述</th>
                                <th>{$L.unit_yun}金额(元)</th>
                                <th>佣金(元)</th>
                            </tr>
                            {foreach from=$list item=m}
                              <tr>
                                  <td>{$m.ivt_username}</td>
                                  <td>{date('Y-m-d H:i:s',$m.addtime)}</td>
                                  <td>{$m.desc}</td>
                                  <td>{$m.total}</td>
                                  <td>{$m.commission}</td>
                              </tr>
                            {/foreach}
                            </tbody>
                         </table>
                     </div>
                    {include file="public_page.html"}
                </div>
            </div>
        </div>
    </div>
</div>
{include file="footer.html"}